package com.insurance.modules.claim.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.insurance.common.utils.PageUtils;
import com.insurance.modules.claim.entity.ClaimCaseEntity;
import com.insurance.modules.claim.vo.request.CaseCloseRatioReq;
import com.insurance.modules.claim.vo.request.CaseListReq;
import com.insurance.modules.claim.vo.request.CasePayOutRatioReq;
import com.insurance.modules.claim.vo.response.*;

import java.util.List;
import java.util.Map;

/**
 * 案件表
 *
 * @author weiruifeng
 * @email
 * @date 2021-09-24 17:42:47
 */
public interface ClaimCaseService extends IService<ClaimCaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Page<CaseListRsp> pageList(Page<CaseListRsp> page, CaseListReq req);

    List<CaseListExportRsp> pageExportList(CaseListReq req);

    String getMaxCaseNo();

    Long getNextCaseNo();

    void batchImportExcel(List<CaseListExcelImport> cachedDataList, String taskCode);

    String getImportMsg();

    boolean deleteById(String id, Long userId);

    Page<PayOutRatioRsp> queryPayOutRatio(Page<PayOutRatioRsp> page, CasePayOutRatioReq req);

    Page<CaseCloseRatioRsp> queryCaseCloseRatio(Page<CaseCloseRatioRsp> page, CaseCloseRatioReq req);

    Page<DisabilityLevelReportRsp> queryDisabilityLevelReport(Page<DisabilityLevelReportRsp> page, CaseCloseRatioReq req);

    Page<DisabilityLevelReportRsp> querySelfPayAmountReport(Page<DisabilityLevelReportRsp> page, CaseCloseRatioReq req);

    Page<PayOutRatioRsp> queryAccidentTypeRatio(Page<PayOutRatioRsp> page, CasePayOutRatioReq req);
}

